package tt.dz.mvc.model;

import tt.dz.entity.system.OmsOperList;
import tt.dz.entity.system.OmsRole;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class AddRoleModel implements Serializable
{
	@NotNull
	private String role_name;
	private int entity_type;
	private String entity_id;
	private String entity_name;

	public OmsRole generateOmsRole()
	{
		OmsRole role = new OmsRole();
		role.setRole_name(getRole_name());
		role.setEntity_type(getEntity_type());
		role.setEntity_id(getEntity_id());
		role.setEntity_name(getEntity_name());
		return role;
	}

	public String getRole_name()
	{
		return role_name;
	}

	public void setRole_name(String role_name)
	{
		this.role_name = role_name;
	}

	public int getEntity_type()
	{
		return entity_type;
	}

	public void setEntity_type(int entity_type)
	{
		this.entity_type = entity_type;
	}

	public String getEntity_id()
	{
		return entity_id;
	}

	public void setEntity_id(String entity_id)
	{
		this.entity_id = entity_id;
	}

	public String getEntity_name()
	{
		return entity_name;
	}

	public void setEntity_name(String entity_name)
	{
		this.entity_name = entity_name;
	}
}
